package cn.edu.ncut.cs.springboot.springsecuritydemo.service;

import cn.edu.ncut.cs.springboot.springsecuritydemo.entity.Permission;
import org.springframework.lang.NonNull;

import java.util.List;
import java.util.Optional;

public interface PermissionService {

    List<Permission> getAllPermissions();

    Optional<Permission> getPermissionById(Long id);

    Permission createPermission(Permission permission);

    Permission updatePermission(Long id, Permission permission);

    boolean deletePermission(Long id);
}
